package com.ggh.config;
import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author ： jsq
 * @date ：2019/10/13 21:03
 * @description : 关于mybatis-plus的相关配置
 * @path : com.ggh.config.MybatisPlusConfig
 * @modifiedBy ：
 */
@EnableTransactionManagement
@Configuration
public class MybatisPlusConfig {
    /***
     * 分页插件
     * @return
     */
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }
}

